package com.shensi.adminCollect.mapper.station;


import com.shensi.adminCollect.domain.station.ActivityCommodityRules;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ActivityCommodityRulesMapper {
    int deleteByPrimaryKey(Long activityCommodityId);

    int deleteByMarketActivityId(Long marketActivityId);

    int insert(ActivityCommodityRules record);

    int insertSelective(ActivityCommodityRules record);

    ActivityCommodityRules selectByPrimaryKey(Long activityCommodityId);

    int updateByPrimaryKeySelective(ActivityCommodityRules record);

    int updateByPrimaryKey(ActivityCommodityRules record);

    List<ActivityCommodityRules> selectActivityCommodityRulesList(ActivityCommodityRules activityCommodityRules);

    int updateByMarketActivityId(@Param("marketActivityId") Long marketActivityId);

    List<ActivityCommodityRules> selectActivityCommodityRulesByMarketActivityId(@Param("marketActivityId") Long marketActivityId);
}